<script>
	import Vue from 'vue'
	import { mapMutations,mapGetters } from 'vuex'
	import { authorizedPositioning } from '@/common/location.js'
	export default {
		onLaunch: function() {
			authorizedPositioning()
			
			uni.getSystemInfo({
				success:function(e){
					Vue.prototype.statusBar = e.statusBarHeight
					Vue.prototype.windowWidth = e.screenWidth
					Vue.prototype.windowHeight = e.screenHeight
					Vue.prototype.systemType = e.platform
					// #ifndef MP
					if(e.platform == 'android') {
						Vue.prototype.customBar = e.statusBarHeight + 50
					}else {
						Vue.prototype.customBar = e.statusBarHeight + 45
					}
					// #endif
					
					// #ifdef MP-WEIXIN
					let custom = wx.getMenuButtonBoundingClientRect()
					Vue.prototype.customBar = custom.bottom + custom.top - e.statusBarHeight
					Vue.prototype.boundingW = custom.width
					// #endif
					
					// #ifdef MP-ALIPAY
					Vue.prototype.customBar = e.statusBarHeight + e.titleBarHeight
					// #endif
				}
			})
		},
		onShow: function() {
			
		},
		onHide: function() {
			
		}
	}
</script>

<style lang="scss">
	@import '@/static/colorui/icon.scss';
	@import '@/static/colorui/main.scss';
	@import '@/static/style/global.scss';
	// *{
	// 	padding: 0;margin: 0;box-sizing: border-box;
	// }
</style>
